package com.fcscs.cservice.client.common.model.iguestusers;

import java.util.Collection;
import java.util.Map;

import com.fcscs.core.gwt.common.EntityModelData;
import com.fcscs.cservice.client.common.CServiceConstants;
import com.fcscs.share.gwt.common.ShareGWTConstants;

public class iGuestUsersModelData extends EntityModelData<iGuestUsersModel>{

	public iGuestUsersModelData(iGuestUsersModel t) {
		super(t);
	}

	private static final long serialVersionUID = 1L;

	@Override
	protected void populateNames(Collection<String> tempNames) {
		tempNames.add(ShareGWTConstants.ROOM);
		tempNames.add(CServiceConstants.GUESTNAME);
		//tempNames.add(CServiceConstants.CATEGORY);
		//tempNames.add(CServiceConstants.DELIVERYDATE);
		//tempNames.add(CServiceConstants.DELIVERYTIME);
		tempNames.add(CServiceConstants.DEPARTUREDATETIME);
		tempNames.add(CServiceConstants.STATUS);
	}

	@Override
	protected void populateProps(Map<String, Object> props) {
		props.put(ShareGWTConstants.ROOM, entity.getRoom());
		props.put(CServiceConstants.GUESTNAME, entity.getGuestName());
		//props.put(CServiceConstants.CATEGORY, entity.getCategroy());
		//props.put(CServiceConstants.DELIVERYDATE, entity.getDeliveryDate());
		//props.put(CServiceConstants.DELIVERYTIME, entity.getDeliveryTime());
		props.put(CServiceConstants.DEPARTUREDATETIME, entity.getDepartureDT());
		props.put(CServiceConstants.STATUS, entity.getStatus());
	}

	@Override
	protected <X> void setProperty(String property, X value) {
		
	}

}
